package com.dycloud.project.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
@SuppressWarnings("all")
public enum LikeTargetTypeEnum {

    INDUSTRY_TRENDS("industry", "行业动态", "iIndustryTrendsService"),
    COURSE("course", "课程", "iCourseService"),
    ;

    private String targetType;

    private String desc;

    private String className;


    public static String getClassNameByTargetType(String targetType) {
        for (LikeTargetTypeEnum value : LikeTargetTypeEnum.values()) {
            if (value.getTargetType().equals(targetType)) {
                return value.getClassName();
            }
        }
        return null;
    }
}
